package cn.bdqn.controller.wx;

import cn.bdqn.entity.ClassInfo;
import cn.bdqn.service.wx.ClassInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @ProjectName: ycbdqn
 * @Package: cn.bdqn.controller
 * @Author: huat
 * @Date: 2020/3/3 20:14
 * @Version: 1.0
 */
@RestController
@RequestMapping("wx")
public class ClassInfoController {
    @Autowired
    ClassInfoService classInfoService;
    /**
     * 获取所有课程信息
     * @return
     */
    @RequestMapping("getClassInfo")
    public List<ClassInfo> getAllClassInfo(){
        return classInfoService.getAllClassInfo();
    }
}
